//
//  File.swift
//
//
//  Created by didi on 2022/9/9.
//

/// generic API module protocol
public protocol ObjectModule: ObjectComponent {
}

public extension ObjectModule {
    static func permission(for action: Permission.Action) -> Permission {
        .init(namespace: permissionKey, context: "module", action: action)
    }

    static func availablePermissions() -> [Permission] {
        [
            permission(for: .detail),
        ]
    }
}
